package com.pearl.web.demo.doc;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author TangDan
 * @version 1.0
 * @since 2023/3/20
 */
@Configuration
public class SpringDocConfig {
    @Bean
    public OpenAPI openAPI() {
        return new OpenAPI()
                .info(new Info().title("SpringDoc")
                        .description("测试 SpringDoc")
                        .version("v1.0.0"));
    }
}
